package com.study.service;

import com.study.service.aop.Test;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TestService2 implements Test {


	@Override
	public void test() {

	}

	@Async
	@Override
	public void test2() {
		try {
			Thread.sleep(2000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("test2 method running");
	}
}
